package com.example.module1;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;

import com.example.router.annotation.Router;
import com.example.routercore.ARouter;


@Router(path = "/module1/test")
public class Main1Activity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main_1);
    }

    public void toMain(View view) {
        ARouter.getInstance().build("/root/main").navigation(this);
    }

    public void toModule2(View view) {
        ARouter.getInstance().build("/module2/test").navigation(this);
    }
}
